package com.lad.springboot_mybatis.mapper;

import com.lad.springboot_mybatis.entity.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author:wjup
 * @Date: 2018/9/26 0026
 * @Time: 15:20
 */
@Repository
public interface UserMapper {
 
    User Sel(int id);

    @Select("select id, userName, passWord, realName from user where userName = #{name}")
    User selectUserByName(String name);

    void updateUsers(List<Map<String, String>> list);

    void insertUsers(List<User> list);

    int insertUser(User user);
}